body {
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    background: linear-gradient(130deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: var(--theme-text-color);
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    overflow: hidden;
}

header {
    padding: 12px 0 8px;
    text-align: center;
    color: #FFFFFF;
}

header h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 8px;
}

main {
    flex: 1;
    overflow: hidden;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    padding: 15px;
    width: 90%;
    margin: 0 auto;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-card-bg);
    border-radius: 16px;
    padding: 15px 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--theme-card-border);
    box-shadow: 0 4px 24px var(--theme-card-shadow);
    min-height: 130px;
}

.item:hover, .item:active {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.svg-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #FFFFFF;
    margin-top: 8px;
}

footer {
    padding: 10px 0;
    font-size: 13px;
    text-align: center;
    opacity: 0.7;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 1280x800分辨率横屏设备特定样式 */
@media screen and (width: 1280px) and (height: 800px), 
       screen and (width: 800px) and (height: 1280px) and (orientation: landscape) {
    .container {
        padding: 0 20px;
    }
    
    header {
        padding: 15px 0 10px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .grid-container {
        grid-gap: 30px 35px;
        padding: 20px;
    }
    
    .item {
        min-height: 140px;
        padding: 18px 14px;
    }
    
    .svg-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 18px;
        margin-top: 10px;
    }
    
    footer {
        padding: 8px 0;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 22px 28px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px 25px;
    }
    
    header h1 {
        font-size: 22px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
    
    .footer-content {
        gap: 10px;
    }
    
    .item {
        min-height: 120px;
        padding: 15px 10px;
    }
    
    .svg-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px 20px;
    }
    .item {
        min-height: 110px;
        padding: 12px 8px;
    }
    .svg-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .title {
        font-size: 13px;
        margin-top: 5px;
    }
    
    header {
        padding: 8px 0;
    }
    
    header h1 {
        font-size: 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    header {
        padding: 5px 0;
    }
    
    header h1 {
        font-size: 18px;
    }
    
    .header-subtitle {
        display: none;
    }
    
    .grid-container {
        grid-gap: 15px 20px;
    }
    .svg-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-bottom: 5px;
    }
    
    .title {
        font-size: 12px;
        margin-top: 2px;
    }
    
    footer {
        padding: 5px 0;
    }
    .footer-content {
        gap: 5px;
    }
    
    .footer-content p {
        font-size: 10px;
    }
}

.item:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 15px;
    z-index: 1000;
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast.show {
    bottom: 30px;
}

@media (min-width: 1024px) and (orientation: landscape) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 28px 32px;
        padding: 20px;
    }
}